package day006.homework;

import java.util.Arrays;
import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数组长度：");
        int n = sc.nextInt();
        int[] arr = new int[n];
        System.out.println("请输入数组数字：");
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }

        System.out.println("你输入的数组为：");
        System.out.println(Arrays.toString(arr));
    }
}
